package com.aaa.dang.modules.user.Controller;

import com.aaa.dang.common.util.ResultModel;
import com.aaa.dang.modules.user.service.IStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.xml.transform.Result;
import java.util.List;
import java.util.Map;

/**
 * @author JinChaoLiang
 * @calss QY87
 * @description 描述
 * @date 2018/12/26
 */
@Controller
@RequestMapping("/analysis")
public class statisticsController {

    @Autowired
    private IStatisticsService statisticsService;

    @RequestMapping("/toStatistics")
    public String toStatistics() {
        return "/user/statistics";
    }

    @RequestMapping("/toStuRent")
    public String toStuRent() {
        return "/user/sturent";
    }

    @RequestMapping("/getMoneyList")
    @ResponseBody
    public ResultModel getMoneyList(@RequestParam Map<String, Object> query) {
        return statisticsService.getMoneyList(query);
    }



    @RequestMapping("/getStuMoneyList")
    @ResponseBody
    public ResultModel getStuMoneyList(@RequestParam Map<String, Object> query) {
        return statisticsService.getStuMoneyList(query);
    }

}
